<?php
/**
 * Created by PhpStorm.
 * User: dell
 * Date: 2017/7/5
 * Time: 15:48
 */
namespace app\admin\controller;

use think\Db;
use think\Request;

class UserController extends BaseController{

    //用户列表
  public function lst(){
      //接收搜索条件
      $keyword = Request::instance()->param('keyword');
//      if(empty($keyword)){
//         $users = Db::table('user')->paginate(15);
//      }else{
//         $users = Db::table('user')
//             ->where('username | tel','like',"%$keyword%")
//             ->paginate(15,false,['query'=>['keyword'=>$keyword]]);
//      }
//      $this->assign('users',$users);
      return $this->fetch();
  }
    //添加用户
    public function add(){
        //接收数据
        if(Request::instance()->isPost()){

        }
        //验证数据
        //添加数据
        $this->fetch();
    }
    //编辑用户信息
    //查看用户信息
    //删除用户

}